package com.example.demo.test1.controller;

import com.example.demo.test1.entity.SnapshotConfig;
import com.example.demo.test1.service.SnapshotConfigService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 快照创建配置(SnapshotConfig)表控制层
 *
 * @author makejava
 * @since 2022-05-13 09:19:47
 */
@RestController
@RequestMapping("snapshotConfig")
public class SnapshotConfigController {
    /**
     * 服务对象
     */
    @Resource
    private SnapshotConfigService snapshotConfigService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SnapshotConfig selectOne(Integer id) {
        return this.snapshotConfigService.queryById(id);
    }

}